Made animation run more smoothly