Add retain, release, and delete functions.