Added check for turned off location service