Improved use of printf.