Added parse() function