Made history search work