Added flatten and renamed file.