Added some error output