Updated to use a shared scheme.
Removed userdata junk.