Adding apply script