Added getHistory method