Added recording of received data