Added try_connect and ability to override credentials on connect.