Routines for manipulating stashes