Added support for scope as a Proc