Simpler and safer event callbacks handling