Added code from SkypeChatManagers repository