Return a code instead of mutating the object