Untested implementation of GPS. Might break