Changed bytes_remaining to bytesRemaining