Add search function. Repository