Working on moving compilation to Modules and state to created ModuleCalculator instances.