Added Event function

Added Event function