Made autoConnection configurable