This needs to happen earlier.