Added localTimeout params to stateFn's, flashSet