Changed procedure writing and PDF