Changed the way local gravity calculates