Added auxiliary enums.
Added skeletons of event handles methods.
A step toward safe multithreading.