Better error returning
Update smart.json