Made lookup tool smarter about statuses (bug 1036665)