Made getwords work