Changed clientId to userId.