Add linearize script