Altered file handling to be done via NodeJS