Moved top-level class variables into class definition to remove ruby 2.0.0 warning messages