Simple function scheduler