Fixed bug so now the commands work over the socket