Moved all dev code to GraphicsContext