Add `file` and `slice` functions.