Fixing connect to run with one command, instead of two