Added for loop
if