Reworked and fixed resource adding to the ERF exporter.