Updated to add pdf support