Added functionality to simulate and compute throughput