Add functions, examine where destructors are called