Add loaded_modules attribute