Added comparison to last position for GPS validity check.