Added internal parser function