Added tracking for msgID so clearing table doesn't clear msgID. Still in debug stage
resolving conflicts with bool vs Boolean.