Removed local var bytesReceived, not necessary