Dewatering, drying and cooling