Now accepts pdfs!