Adding small helper function