EDIT: Construct a printer function and eliminate two warnings.