Move model addition out of the loop