Have we defined these magic numbers as enums anywhere? Otherwise a small doc saying what they do would be nice (maybe even at the function header).