Reducing to one function by using location_name as argument.