Adding feature to limit memory consumption of modules on load