Add support for events callback and multi-user