Copy with mods from haproxy doc