Minor changes
Reverted allocation of pdf_temp back to integer