Adding the storage function