Adding session serialization