Adding history options and checkwinsize