Added advanced debug messages.