Uses filenum instead of filename.