Profile saving still not working. Added log statements to test