Why did we move this code out of this function?