Added a better code and PDF