Resolve TODO of using longs for notification indexes. Thanks to ArneBab