GPS code overhauled