Added some error handling.
Ported Axels UIAlertView code.
Refactorings.