Added automatic fault handling.
Implemented error handling (quickly - forgive any errors!).