Added error when states cant be tracked