Add write_entries function.