Added functionality to alter html output