Move reading/writing of process info into separate class