Preloading functionality added