Added cline of closure functions to improve clone() method