Modified to send more detail only in debug mode.