Add BitwiseAnd aggregate function and TimeSlotHelper function