Add correct Serial Number Arithmetics to processNotify (compilable version)