Fixed bug where multiple in-args were out of order.
Ugly fix so needs rewrite, too much of this stuff is very
imperitive. Make it functional