Now supports connecting to an instance rather than just locally.