set now accepts an object.