Allow adding custom callbacks for some events