Add begin/end blocks.