added comment with explanation for SetIdleFunction()