Add compression parameter and refactor method
Add friendly configuration