Added input to allow user to control animation speed