Moved connection logic into Igor class