Implement basic connection functionality