Better UI code.