Updated to exclude PDFs