Separate command line parsing from the actual algorith code