Changed to LineReceiver protocol instead using the generic protocol