Updated COMPRESS Function