Tidying up debug messages.