Issue: #6

  * Fixed uninitialized loop counter