Added instance ID extraction for given stack