Move math stuff into anims module
No need to keep track of the start time