Add support for gates (capture-to-break barriers).