Calc. total accel.
Formatting
Remove debug output