Fixed timestamps in gps record and improved script.