Testing old code / repository function