Moved some things around to be more sensible

That showmap function was always in the wrong place.