Moved error to output