CO2 Scenarios: corrected wrong usage of getFunction method.
Code grooming.