Updated to be in line with iOS data-storage standard.