Update script to Rev4