Added logging to graphics.