Create repeatDone directive