First commit

Need to fix error of invalid event window