Callback rewrite