Finalize analysis