I changed the rasterEntries[0].filename to rasterEntries[0].mainFile.name so that it works on files that are not necessarily in the same directory as the process. This only applies to the mods made for the enhanced API.