Really basic protocol parsing