Moved preloader to utils file