Session manager(WIP). Related to #16