Removed an infinite loop from the first call to compress by making it so that the first chunk is only added once