Allow multiple outputs

Allow to specify multiple outputs.

r? @tarekziade