Worked more on OptionState. Added option to dynamically change window setup with new parameters.