Refactored for official nginx + removed all features