Added support for functions' block and recognizing extra pairs within task's body.