Updates for better sorting.