Finished compare_keys (I hope).