Scoped the locationsService. Added comments