Fix deprecation warnings.
tail -> slice_from