Can you add a check in here that the required params are present?