Improve instantiation performance and update dependencies.