Improvements to the osar calculation, now uses the sub dt steps