More work on html writer.