Was sending the wrong variable as a command