Converting to commandline utility