Adding send and receive funcs