CASC-179

added parameter to determine whether to create sessions.  Also, now properly does a return.
Merge pull request #34 from battags/CASC-179

CASC-179