Added checkbox for gui.