Made application start-up thread safe.