Replacing chain with each and clone

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>