Add session completion for `attach' function