Optimized the Tween class