Added json configuration to remember dynamic module states.