Setting up flags for buildings.