Updated publish loop to eliminate need for clone
Updated publish implementation to remove the need for cloning the array