Skeleton for event handling.