Wrap scope with lambda in user model