MaterialHandler class now inherits from ServerWriter.