Added a -t flag to specify max session time at launch