Override 'script' hook