This needs to be a bool, not an int — and 0 is false, or failed (we want success).