Fix for commands being encoded. The whole thing with commands being passed as objects into the invoke method will need to be unhacked and done properly.