Didn't mean to paste the couchbase example code in directly...