daily mode schedule_function

Makes schedule_function work in daily mode and removes the errors related to using schedule_function in daily mode.