Add velocity calculation.
Add mode for y-perturbation.