Update main logic.