Use thread for calling event