Refactored to keep clones in order when limiting the amount of clones