Updated to generate HTML in runtime.