That's the code straight from Gaia