Added function for graphics.