Add basic connect/disconnect functionality