Moved around loop execution measurement and fixed string buffer overflow on param list