Added a separate local storage function file.