Add better tools for computing zigzags.