Given most of these parameters can be derived from module, I wouldn't have a seven parameter variable list! I'd handle the module.params unpacking in the receiving method or do more in main.