Revised target runtime detection method.