New script loader logic.