Adding support for $proc keyword