2D array for history implemented.