Implemented DispCallFunc so that it works when calling event handlers