Implemented the preset writer.