Added a basic position extrapolation algorithm, plus misc stuff.