Added messageRepeat option