Add put(receive) function.