Added alt. clause for received data through port.