Clean script now keeps PDF