Implemented gps functionality