Improve support for getoutput and status.