Changing key file format