Totally hacked, but error output is actually working