Add doctype, limit rate of doc creation