Added block-parser function