Modification of the final loop