Better way to handle the required parameters