Implemented For loop.