Hide the DOUT static variable behind a function interface.