Implement delay and endDelay for groups

Done.