Protocol wrapper, session stability checker and Service refactoring.