Integrates the logic into the commandline interface.