Added logic to create single files, compressed