Fix for commands being encoded. The whole thing with commands being pass...

...ed as objects into the invoke method will need to be unhacked and done properly.