Support writing profiles to files