Di added a function to the repository