Change to generate flag files and generating place.