Made error reporting work.