Added debugging for put method.