Separate startup from GmapEntry and fix a few bugs.