Added selection and delete subword functions