Compaction works that we know of. All three phases checks out. More optimization and testing is needed.