Finalize and debugging.