Add main logic and UI.