Working model. Still local and have to change the variable

Working model. Still local and have to change the variable when it's
used on the server.