Added preloader for initial socket connection