Refactored and fixed parsing routines for latency,error codes and reqyest size