Added max words to input