Made automatic connection on instantiation optional.