Added ability to edit repeat