Added Error reporting for use in development