Rearranged more of the code in compression.c to fit 80 columns