Match function to prepareWrite.js filename