added report scheduling function.