Trying to resolve syntax errors with model.set