Changed parser to be invokable via the command line.