Stanley Reduces Loss in Second Quarter