Added preferences for saving file id