Create routes in loop
Add miniprof code (unused for now)