Added session serialization