Made events thread-safe when being invoked by the caller(this).