Main logic have been. There are some problems with initializing profile.
Merge branch '5_profile'