Not related but any chance of switching this to use a logger?