Optimized output of stepwise printer
Fixed a bug that was introduced by previous commit