Add a postscan hook.