Add unused untested animation code
Make time a dynamic var instead of parameter to everything