Updated optimization scripts.