Main printf function added for testing.