Uses of CaptureEvents and ReleaseEvents