Make the code a bit more testable, but hide the inner workings from public view.