Session Handling

Fills in task ID vector that can be written to session file.