Edited gpscontroller