Using the processed file map for the JSON output
Tidy up