Fixed writer example.