Adding debug to commands