AFAIK, this can return -1, which will cause the next line to fail