Nested loops take time to execute.