Assigned unit result to val