Revised state array so Nb is in the correct dimension. Previously was not declared according to the spec.