It seems like there's probably a better way to do this file than how it is now but I'm not sure what it is. Any opinions?