Fix last commit to account for new method for specifying if parameters are required or optional.