ENH: Add diagnostic information.