Refactored the parser in order to produce Maybe.