Added full protocol support with proper record parsing