Updated the fileManager to native Processing code