Incorporated scriptManager into plowing function