Moved processing of received bytes to separate class. Test it.