Added an Integer stream to reduce memory usage