Add repository layer.