Implements Exception Handling