Updated config handling of module.