Finalized, debugged