Add updating of profiles functionality