Added scheduling to example