Completed logic for loop sharing tokens