Did some discrete refactoring, and changed the emergency button to not check for a valid number, since the phone should do that.