Added loop for calculating more numbers