Added in connect/disconnect logging and receive data logging