Updated to include wordScore functionality