Added the ability to loop avatar movement.