Add profile-output function