Adding current history function