Code refactoring.
Fix regression
Update to generate different loadleveler plugins depending on the major version