Added a set() method reusing code from find() and get().