Added getUniqueFile() in this branch