Fix speed calculations and circuit extender timer callback