Fixed bug where first W[t] was being set to the wrong value. Still not getting correct hash.