Adding echo sample and modified receive callback signature.