Added multiple application support.