Late barrage leads to Pirates win