Moved tween functions to runtime