Adds proper angle sorting and edge case config.