Use the constant `$STATUS_REGISTERED` instead of `reg`.