Second-quarter results show welcome improvement