We should probably use a typed return rather than a uint8 here (I assume this returns things that mean "function" or "object").

Not a problem, just noting.