Adding some basic connection code.