Add support of sketch state.