Updated HTML generation.