Add small helper function for pushing frames.