Updated with server-side stuff

And a minor change to client-side getting cost of item.