Unfinished implementation of parsing