Changed send, added debugging print lines