Apply transformation using Lazy evaluation. Optimise group module.