Added lambda to named scopes