Changed to be single index, immutable, and added a method to apply actions to States for convenience.