Changed tweening to accept time as a parameter