A bit of work on reference counting