Added logic for history settings for EL5 and EL6