More functions for Reader and Writer.