Adding support for format=csv to stub.