Lots of file parsing and metric sending code.