Script and Lock ported to Halo and removed Yii dependance