Updated Modules to have a reset method for resetting dependency modules.