Separated out connect to a separate method