Remove while loop because nested routes aren't supported