Added REPEAT feature