Helper methods

Also improve BasicSliceInput performance