Added new session handler class, minor improvements.