Use [] for .as_slice()
Update for fail -> panic