Making repositories a global variable