Made the cp call recursive