Added main logic.