More work to be done in begin-middle-end.js.