Added basic HTML generation and response handling.