Update function resets all stored data.