Modified Generic script