Add support for userdata