Makes the commandline work properly