WIP: Added code to enable module locking to be reflected in HTML.