Finish the parsing part, still need to test though.