Added save of profile
Signed-off-by: Alexey Korolev <akorolex@gmail.com>