Reformatted for libgps