Added reference count to exec.