Could just move the data struct up here instead of using a temp var.