Added agruments support to callEvent function