Parsing of the input, work in progress