Added SP.connect() response parsing