Updated logic for detecting job history is up to date.