Rewrite !rq and add stash functions