Removed debug statement, removed HTML-specific code