Move command line interface to intermaps to separate file.