At the moment the file is only generated when there isn't one already. Need to inject missing stubs instead if file already exists.