Fixed to hold the IO setting state to array.
Deleted unnecessary codes.