Looping algorthim for reading in process details