Updates to LZW implementation.