Add EventLocker class.