Rewrite access request code.