Rewrite peregrine.