Added repository layer.