Add command to toggle state