Add finalize_gps.