Assign event variables properly