Made gmap variables local