Add 'last' option to the session script