Fixing scheduling functions, particularly pick() and tick().