Added GPS, trim function