Removed use of deprecated send/recv methods