Beginning of UI.