Narrowed down logic for flow into profile.