Add finalize to profile module.