Updated ResourceWriter interface to allow for scanning of files.