Improved output, only write positive numbers