Trying a loop instead