Added a debugging msg handler
Update