First cut of code needed to handle sessions with Said's program.
Fixed issue with file name causing a string overflow