Created method for repeating events. Doesn't work.