Added option to disable graphics.