Added onThink event