Added functionality to connect to TWS