There was a bug in the loops but it didn't seem to change the execution
times anyway.