Looping 5 times instead of 10