Added some things to make sure error reporting is enabled