This especially and the other hard-coded crap is the ugly stuff I kept here. Not really sure how/if to clean up it up properly.