Rewrite addon handling.