Allow uses to pass conf as an IO object.