Add internal repo, if accessible
Remove unneeded code