While this first version really works, it requires some improvements. I will update those points in the future version.
Revised implementation of OnChange event handler.