Added some data sending debug and control