Changed 1000 loops to 2000 loops to do shorter waits for longer