Added addWithPriorityOnce and numListeners to interface