Added init_gps() function