Cleanup variables that can be made static.
Cleanup GPS variables and delete unused code.