Updated to allow use of protocol T=0 or protocol T=1

Fixed minor warning in debug mode