Modified ApplicationStart method