Modified script loader