The totVar and totPow flag parameters are set to true based on existing rather than the boolean defined in the input flag string here. If a user explicitly sets a flag to false this might lead to issues. Ideally, change the code to check that the param exists and is true. Alternatively, add a warning when a param is set to false or a very clear and easy-to-find flag documentation that explains which flags are set to true by default and which ones should only be used when setting to true.