Add code to auto create repositories