Add validation to ensure that correct arguments are specifieds