Refactor profile to make update work.