Ajax hooks.