Fixed addFiles, wasn't adding correctly