Add options for passing proc as class and instance_name