Add null checks if parameters are mandatory.