Added pdf generation