Added generic IF for buildings and population
generic