Add argument discover to repository method