Added multiple application instance support