Add initialize / finalize routine.