Implementing archive writer.