Update: optional severity, implemented and tested on addRef and delRef