Pattern rec funcs now take start/end indices