Implement autoreverse and repeatCount functionality