Added functions for add members and events