Update to proc to use its own objects instead of refs