Addding localstorage to cut down on more api calls.