Improved bleeding edge repo function