Simplified GUI code.