Add receive and send routine