Working on parser function