Updated SDK accordingly to core changes. Fixed update identity bug.