Allow multiple event output and improve HTML output.