Modified loops in markReadsInBucket to use collection.foreach