Updated to the usage of "callEvent"