Various speed improvements and preloading.