Basic infra for executing prim functions working