Finalized logic!