Add options controls

Move protocol enums into library defines