Added initial state to preprocess