Why did you wrap this in a function?