Add more logging to WaitUntilTargeted, and fix the action to function properly