Added threading functionality, which now counts individual characters, but no periodic collation.