Moved work inside loop