Switch to printf. Add diagnostic messages.