Added connection flags and reporting functions