Horrible bullshit as I figure out what I need to do to make this into a
class or method..