Add finalize command