Dynamically generate the required files