Finalizing script