Added script hooks.