Fixes on the SIM card checks and some error messages.