Should fix passing the command to the function it calls