Wrote methods for riak