Started adding memoizing for ta funcs