Add session creation and releasing