Updated to decrement reference count for objects as we are done with them