Add saveAll function