Updated selection and file generation.