Started work on connect()