Updating generate device schedule script