Fixed error. Need to figure out global env for prim-procs