Added some dead reckoning code... It doesn't really work.