Added check for argument in get_stash