Added trace command and its invocation after the session is initialized