Fixed communication issues with prim-resources.