Added CLONE method to deal with thread