Handle the optional params. Default values are based on the required params