Factoring some stuff into class variables to (hopefully) increase legibility.