Stupid fooling about with class definitions and such