Add scripting for session management