Added comments. Automatically start session?
Allow either string or object to be passed.