New logic for qpf_allday