Rewrote the error notification system