Somewhat tested parsing functions