Updated init_vsat thread function.