With Scott's help I was able to reduce the amount of output.