Refactored to proper form. Fixed checkUnloaded logic. Updated example modules to new system.