Added PDF generation.