Adding html and pdf output.