Simplify 'foreach'
Simplify 'parse'
Simplify 'with_temporary_file'