Modified fetch latest item logic.