Finished implementing connect and part of config.