Implemented word selection.