Get send and receive working