Added sending by protocol function