Added outputURL as a parameter to connect