stash: Some small helper functions added