Early length slicing functions and scripts