param_struct replaced by input_struct; all input parameters at the
start of the code