Fixed up code. Added one implementation of dynamic tracking that scales movement based on position in z axis.