Improve rows, looping, codestr, methods