Replace some couts with the fmt