Checking the location based functionality.