Add error_out method