We use hydrodynamical simulations to study the evolution of baryonic gas in a cosmologically evolving dark matter halo. We model both the inner and outer regions of the halo using a density profile that transitions from an inner NFW profile to a flat profile far from the halo. Metallicity-dependent radiative cooling and AGN jet feedback are implemented, which lead to heating and cooling cycles in the core. We analyze the evolution of gas and the central supermassive black hole (SMBH) across cosmological time. We find that the properties of the gas and the SMBH are correlated across halo masses and feedback efficiencies.