Optimized GlowProtocol implementation and protocol selection somewhat.