Specifying some error-handling.