Added a loaded hook.