Updated module editing to account for the module cache.