Update v0.1.7: Switched conditional order to get better performance when compressing it.