Improve tuple comparison and add copyright.