Print functions fixed.