Added ability to connect through URL