Script is working fine