Move utils to another file, using local storage properly now.