Modules

Replacing waterfall IF-ELSIF-ELSE blocks