Updated pre proc script