Made parts of the initialization asynchronous