Add ext hooks.