Finalizing scripts.