Added ability to parse from stdin.