Add deallocation routines.