Added check if localStorage is full