Added smoothState.js