Prepping for porting some of the graphics code to pure Java.