Code cleanup after profile.