Simplified UI code.