Now I need to comment the hell out of this, and clean some of these hack-assed scripts I used to generate data