Call connect function if service is present