Added data parameter to createLocalFileName()