Added the parser function