Updated error reporting until notices are fixed.