Final logic