Removing debug output and adding a simple option parser.