Untested support for begin/end commands