Update for state.js v4.1.0