Rename parentBlock to getBlock and syntax fixes.