Added check for whether localStorage is enabled