Simplified and documented parser.