Added small helper function