Fix for connect method parameter order

Sorry - I made a mistake in my last pull request, the method params order was messed up. This corrects it. I have also tested it manually. 

I'll look into putting in some unittests to make sure this mistake does not happen again.