Currently this does not return a value, do I make it return a bool to signal error? Do we really need to return an int32_t as you suggest?