Added HTML outputting functionality