Only glancing over; perhaps would be good to have  a `const` for this (and use that `const` to document what it's for, and where the `10000` came from (which may be just "we had to pick a value"). Such values can cause some head-scratching in future, where people forgot if there was a specific reason for picking the value. 