Added object-de-duping
Added ds to middleware