Added functionality to location manager.