Saving items into file.