I think this would also work without using `as_slice()` here