Updated derivative generation with latest temp file management.