Added word selection and exit