Added check whether the GPS was enabled