Finish update profile module: compiles, not tested