Removed PIM events magic number and made the value persist instead