Detect disabled GPS. Added some comments.