Add event visibility bit and add copy function for events