Implemented loop with old program. Results are in lab1Res/latencyRes.txt