Changed statistics generation. Added failed responses count.