Added repeat mode for effects.