New mini-lib for events