If num is 1-based, please document it.