Add unknown method error when no event listener is available.
Improve API structure.