Script component now working