Add method to reuse code when clone repo