Compatibility with begingroup.js