Simplications, sorting, some stuff.